package main

import (
	"net/http"

	"gitee.com/shuwenhe/shuwen-go/update/controller"
)

func main() {
	http.Handle("/pages/", http.StripPrefix("/pages", http.FileServer(http.Dir("views/pages"))))
	http.HandleFunc("/getItemByID", controller.GetItemByID)
	http.HandleFunc("/updateItem", controller.UpdateItem)
	http.ListenAndServe(":8080", nil)
}
